package com.sooncode.project.focusservice.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sooncode.project.core.annotations.Lookup;
import com.sooncode.project.core.annotations.LookupModel;
import com.sooncode.project.focusservice._.base.BaseDomainModel;
import lombok.Data;

import java.util.Date;

@Data
@LookupModel
public class Classes extends BaseDomainModel<Classes> {
    private String name;
    private String year;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    private String orgId;
    @Lookup(fromModel = Organization.class,localField = "orgId",fromField = "name")
    private String orgName;
    private String remark;
    private String status;
}
